<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>

  import {getPersonal} from "../api/personalCenter";

  export default {
    created() {//
        getPersonal().then(res=>{//每次页面刷新的时候请求个人信息 请求成功的话说明已经登录 然后更新用户信息和登录状态
          if(res.code==0){
            this.$store.commit("modifyLoginType",{isLogin:true,userInfo:res.userInfo})
          }
        })
    }
  }
</script>
<style lang="less">
  [v-clock]{
    display: none;
  }
  #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
body{
  margin: 0;
  padding: 0;
  border: 0;
}
  /deep/
  .el-tabs__item is-top is-active{
    border-shadow: none !important;
  }
  ul{
    list-style: none;
    padding: 0;
  }
</style>
